package com.Hsu.demo.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

/**
 * @author Hsu琛君珩
 * @ClassName:MyAspectDemo
 * @date 2024-01-16
 * @apiNote
 * @Version: v1.0
 */

@Aspect
@Component
@Slf4j
public class MyAspectDemo {
    @Before("@annotation(com.Hsu.demo.aspect.MyAspect)")
    public void doBefore() {
        log.info("执⾏ MyAspectDemo Before ⽅法");
    }

    @After("@annotation(com.Hsu.demo.aspect.MyAspect)")
    public void doAfter() {
        log.info("执⾏ MyAspectDemo After ⽅法");
    }
}
